package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.activity.UserActivityConditionData;
import com.yanqu.road.entity.player.UserMallBuyCount;

import java.util.List;
import java.util.Map;

public class UserCommonActivityBussiness {

	public static Map<Integer, Map<Integer, List<UserActivityConditionData>>> getUserActivityConditionDataMap(long userId, List<Integer> activityIdList) {
		return DaoHelper.getUserCommonActivityDaoImpl().getUserActivityConditionDataMap(userId, activityIdList);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataList(int activityId, long userId, int type){
		return DaoHelper.getUserCommonActivityDaoImpl().getUserActivityConditionDataList(activityId, userId, type);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataList(int activityId, int type, int rankNum){
		return DaoHelper.getUserCommonActivityDaoImpl().getUserActivityConditionDataList(activityId, type, rankNum);
	}

	public static Map<Long, UserActivityConditionData> getUserActivityConditionDataMap(int activityId, int type){
		return DaoHelper.getUserCommonActivityDaoImpl().getUserActivityConditionDataMap(activityId, type);
	}

	public static boolean addUserCommonActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return DaoHelper.getUserCommonActivityDaoImpl().add(userActivityConditionData);
	}

	public static boolean updateUserCommonActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return DaoHelper.getUserCommonActivityDaoImpl().update(userActivityConditionData);
	}
}
